﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Framework.Common
{
    /// <summary>
    /// 响应状态码
    /// </summary>
    public enum ResponseStatusCode
    {
        /// <summary>
        /// 成功
        /// </summary>
        Success = 200,
        /// <summary>
        /// 错误
        /// </summary>
        Error = 400,
        /// <summary>
        /// 用户未认证，请求失败
        /// </summary>
        Error_Unauthorized = 401,
        /// <summary>
        /// 用户无权限访问该资源，请求失败
        /// </summary>
        Error_Forbidden = 403,
        /// <summary>
        /// 访问频繁，已被限制访问，稍后重试
        /// </summary>
        Error_ManyRequests = 429,
        /// <summary>
        /// 已在其他地方登录需重新登录
        /// </summary>
        Error_NeedReLogin = 444,
    }
}
